<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<s:if test="%{serialInterface == null}">
	<s:form action="measurementMenu" validate="false">
		<s:bean name="tr.gen._3bit.java._2k1s.web.util.bean.SerialInterfaces" id="_serialInterfaces" />
		<s:select id="m_serialInterface" list="#_serialInterfaces.list" listKey="id" listValue="label" 
			label="%{getText('measurement.main.menu.serialInterface.label')}" name="serialInterface"/>
		
		<s:submit theme="ajax" targets="measurementMenu" value="%{getText('measurement.main.menu.select.text')}"/>
	</s:form>
</s:if>
<s:else>
	<div class="serviceOp">
	<s:form action="startService" validate="false">
		<s:textfield id="m_serialInterface" name="serialInterface" value="%{serialInterface}" cssStyle="display:none"/>
		<s:submit theme="ajax" targets="serviceResult" value="%{getText('measurement.main.service.start.text')}" />
	</s:form>
	</div>
	<div class="serviceOp">
	<s:form action="stopService" validate="false">
		<s:textfield id="m_serialInterface" name="serialInterface" value="%{serialInterface}" cssStyle="display:none"/>
		<s:submit theme="ajax" targets="serviceResult" value="%{getText('measurement.main.service.stop.text')}" />
	</s:form>
	</div>
	<div class="serviceOp">
	<s:form action="statusService" validate="false">
		<s:textfield id="m_serialInterface" name="serialInterface" value="%{serialInterface}" cssStyle="display:none"/>
		<s:submit theme="ajax" targets="serviceResult" value="%{getText('measurement.main.service.status.text')}" />
	</s:form>
	</div>
</s:else>
